package com.ywjg.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.ywjg.model.AppGood;

public interface AppGoodDao extends PagingAndSortingRepository<AppGood, Integer> {
	
	Page<AppGood> findAppGoodByGoodShopId(int id,Pageable pageable);
	
	Page<AppGood> findAppGoodByGoodTypeId(Integer id,Pageable Pageable);
	
	List<AppGood> findAppGoodByisFixing(Integer isFixing);
	
	Page<AppGood> findByGoodNameLike(String goodName,Pageable Pageable);  
	
	
	Page<AppGood> findAppGoodByGoodTypeIdAndIsFixing(Integer type_id,int isFixing,Pageable Pageable);
	
	
	List<AppGood> findAll();
	
	
	
	List<AppGood> findByIsFixingAndGoodIsDelete(int isFxing,int isDelete);
	
	
	
	
}
